home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / examples / exam14 / readme < prev    next >
Text File  |  1995-09-27  |  785b  |  19 lines

  1.  
  2.  
  3. This example illustrates the definition and use of class variables and
  4. class methods.  It also shows how the vNew and gDispose methods can be
  5. defined.
  6.  
  7. Class variables differ from instance variables in that there is only one
  8. copy of class variables and they are associated directly with the class
  9. object (as opposed to instance objects).  Therefore, when evoking class
  10. methods the first argument is always a class - not an instance.
  11.  
  12. What this example actually does is to define a class variable which
  13. automatically keeps track of the number of instances a particular
  14. class has in existance.  The main program creates and then destroys a
  15. number of instances while displaying the number of existing instances
  16. on a periodic basis.
  17.  
  18. (To build see the readme file in the first example.)
  19.